package com.qidianit.task.mapper;

import com.qidianit.task.pojo.Project;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectMapper {
    /**
     * 分页查询项目数据
     */
    List<Project> queryByPage( Project project);
    // 分页查询还要查询总条数，因为有了总条数，前端才能正确显示最大页码


   Project selectByProjectName(String projectName);
   int insertNewProject(Project project);
   Project selectByProjectId(String projectId);
   int updateById(Project project);
   //根据id修改状态为删除
   int deleteById(String projectId);
   int  archiveById(String projectId);
   int releasesById(String [] projectId);
   int archivesById(String [] projectId);
   int deletesById(String [] projectId);
   List<Project> selectDeletes(Project project);
   int updateStatusByIds(String [] ids);
   int countTasks( Project project);

}
